package kr.pe.osdev.service;

import kr.pe.osdev.dao.ExaminationQuestionDao;
import kr.pe.osdev.domain.Question;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

@Service
public class ExaminationQuestionServiceImpl implements ExaminationQuestionService {

    @Autowired
    ExaminationQuestionDao examinationQuestionDao;

    @Override
    public int count() throws DataAccessException {
        return examinationQuestionDao.count();
    }
    
    @Override
    public int countByQuestion(Question question) throws DataAccessException {
        return examinationQuestionDao.countByQuestion(question);
    }
}
